<div class="cargos view">
	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Cargo'); ?></h1>
			</div>
		</div>
	</div>

	<div class="row">

		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Ações</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>&nbsp&nbsp;Editar Cargo'), array('action' => 'edit', $cargo['Cargo']['id']), array('escape' => false)); ?> </li>
								<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar Cargo'), array('action' => 'delete', $cargo['Cargo']['id']), array('escape' => false), __('Tem certeza que deseja excluir %s?', $cargo['Cargo']['id'])); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;Listar Cargos'), array('action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;Novo Cargo'), array('action' => 'add'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;Listar Funcionários'), array('controller' => 'funcionarios', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;Novo Funcionário'), array('controller' => 'funcionarios', 'action' => 'add'), array('escape' => false)); ?> </li>
							</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->

		<div class="col-md-9">			
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<tbody>
				<tr>
		<th><?php echo __('Id'); ?></th>
		<td>
			<?php echo h($cargo['Cargo']['id']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cargo'); ?></th>
		<td>
			<?php echo h($cargo['Cargo']['nome']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Descricao do Cargo'); ?></th>
		<td>
			<?php echo h($cargo['Cargo']['descricao']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Salário'); ?></th>
		<td>
			<?php echo h($cargo['Cargo']['salario']); ?>
			&nbsp;
		</td>
	</tr>

				</tbody>
			</table>

		</div><!-- end col md 9 -->

	</div>
</div>

<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Funcionarios Relacionados'); ?></h3>
	<?php if (!empty($cargo['Funcionario'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Cpf'); ?></th>
		<th><?php echo __('Rg'); ?></th>
		<th><?php echo __('Data Nasc'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Telefone'); ?></th>
		<th><?php echo __('Celular'); ?></th>
		<th><?php echo __('Sexo'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($cargo['Funcionario'] as $funcionario): ?>
		<tr>
			<td><?php echo $funcionario['id']; ?></td>
			<td><?php echo $funcionario['nome']; ?></td>
			<td><?php echo $funcionario['cpf']; ?></td>
			<td><?php echo $funcionario['rg']; ?></td>
			<td><?php echo $funcionario['data_nasc']; ?></td>
			<td><?php echo $funcionario['email']; ?></td>
			<td><?php echo $funcionario['telefone']; ?></td>
			<td><?php echo $funcionario['celular']; ?></td>
			<td><?php echo $funcionario['sexo']; ?></td>
			<td><?php echo $funcionario['status']; ?></td>
			<td class="actions" width="100">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search" title="Detalhes do Funcionário"></span>'), array('controller' => 'funcionarios', 'action' => 'view', $funcionario['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit" title="Editar Funcionário" style="margin-left:16px;"></span>'), array('controller' => 'funcionarios', 'action' => 'edit', $funcionario['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove" title="Excluir Funcionário" style="margin-left:16px;"></span>'), array('controller' => 'funcionarios', 'action' => 'delete', $funcionario['id']), array('escape' => false), __('Tem certeza que deseja excluir # %s?', $funcionario['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Funcionario'), array('controller' => 'funcionarios', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
